package com.echo.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by alex on 2016/5/12.
 */
public class Friend implements Parcelable ,Comparable<Friend>{
    private String UserId;
    private String FriendId;

    public String getFriend() {
        return FriendId;
    }

    public String getId() {
        return UserId;
    }

    public void setFriend(String friend) {
        this.FriendId = friend;
    }

    public void setId(String id) {
        this.UserId = id;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.UserId);
        dest.writeString(this.FriendId);
    }

    public Friend() {
    }

    protected Friend(Parcel in) {
        this.UserId = in.readString();
        this.FriendId = in.readString();
    }

    public static final Parcelable.Creator<Friend> CREATOR = new Parcelable.Creator<Friend>() {
        @Override
        public Friend createFromParcel(Parcel source) {
            return new Friend(source);
        }

        @Override
        public Friend[] newArray(int size) {
            return new Friend[size];
        }
    };

    @Override
    public int compareTo(Friend another) {
        return 0;
    }
}
